import service from '@/utils/request'

// @Tags CusOrderAssignments
// @Summary 创建cusOrderAssignments表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CusOrderAssignments true "创建cusOrderAssignments表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /cusOrderAssignments/createCusOrderAssignments [post]
export const createCusOrderAssignments = (data) => {
  return service({
    url: '/cusOrderAssignments/createCusOrderAssignments',
    method: 'post',
    data
  })
}

// @Tags CusOrderAssignments
// @Summary 删除cusOrderAssignments表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CusOrderAssignments true "删除cusOrderAssignments表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /cusOrderAssignments/deleteCusOrderAssignments [delete]
export const deleteCusOrderAssignments = (params) => {
  return service({
    url: '/cusOrderAssignments/deleteCusOrderAssignments',
    method: 'delete',
    params
  })
}

// @Tags CusOrderAssignments
// @Summary 批量删除cusOrderAssignments表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除cusOrderAssignments表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /cusOrderAssignments/deleteCusOrderAssignments [delete]
export const deleteCusOrderAssignmentsByIds = (params) => {
  return service({
    url: '/cusOrderAssignments/deleteCusOrderAssignmentsByIds',
    method: 'delete',
    params
  })
}

// @Tags CusOrderAssignments
// @Summary 更新cusOrderAssignments表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CusOrderAssignments true "更新cusOrderAssignments表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /cusOrderAssignments/updateCusOrderAssignments [put]
export const updateCusOrderAssignments = (data) => {
  return service({
    url: '/cusOrderAssignments/updateCusOrderAssignments',
    method: 'put',
    data
  })
}

// @Tags CusOrderAssignments
// @Summary 用id查询cusOrderAssignments表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.CusOrderAssignments true "用id查询cusOrderAssignments表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /cusOrderAssignments/findCusOrderAssignments [get]
export const findCusOrderAssignments = (params) => {
  return service({
    url: '/cusOrderAssignments/findCusOrderAssignments',
    method: 'get',
    params
  })
}

// @Tags CusOrderAssignments
// @Summary 分页获取cusOrderAssignments表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取cusOrderAssignments表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /cusOrderAssignments/getCusOrderAssignmentsList [get]
export const getCusOrderAssignmentsList = (params) => {
  return service({
    url: '/cusOrderAssignments/getCusOrderAssignmentsList',
    method: 'get',
    params
  })
}
